public class exe01{
    public static void main(String[] args) {
        M m = new M();
        m.m(2);
        m.m(2,3);
        m.m("hello");

        Max mx = new Max();
        System.out.println(mx.max(1,2));
        System.out.println(mx.max(1.1,2.2));
        System.out.println(mx.max(1.1,2.2,3.3));
    }
}
class M{
    public void m(int a){
        System.out.println(a*a);
    }
    public void m(int a,int b){
        System.out.println(a*b);
    }
    public void m(String str){
        System.out.println(str);
    }
}

class Max{
    public int max(int a,int b){
        return a>b ? a:b;
    }
    public double max(double a,double b){
        return a>b ? a:b;
    }
    public double max(double a,double b,double c){
        double temp =  a>b ? a:b;
        return temp>c ? temp:c;
    }
}